public class MainCLASS {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new MyThread();
        System.out.println("start");
        t.start();
        t.join();
        System.out.println("end");
    }
}
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("MyThread thread run...");
        System.out.println("MyThread thread end.");
    }
}